<h1>Submission history</h1>
<? if (count($this->paginator)): ?>
<table class="table table-striped table-condensed table-hover">
<tr>
  <tr>
    <th>#</th>
    <th>White Label</th>
    <th>Reg</th>
    <th>Mileage</th>
    <th>Client Name</th>
    <th>Email</th>
    <th>Cost Clean</th>
    <th>Reduction</th>
    <th>Dec. Prc.</th>
    <th>Calculation</th>
    <th>Date</th>
    <th>Action</th>
  </tr>
  <? foreach ($this->paginator as $item): ?>
  <tr>
    <td><?= $item['id'] ?></td>
    <td><?= $this->wlListAr[$item['white_labels_id'] ]->domain ?></td>
    <td><?= $item['reg'] ?></td>
    <td><?= $item['mileage'] ?></td>
    <td><?= $item['client_name'] ?></td>
    <td><?= $item['client_email'] ?></td>
    <td><?= $item['cost_clean'] ?> </td>
	<td><?= $item['cost_reduction'] ?></td>
	<td><?= $item['cost_decrease_prc'] ?></td>
	<td>&pound;<?= CarValuation::calculateCost((object)$item) ?></td>
    <td><?= $item['recorded_stamp'] ?></td>
    <td>
	  <a href="/valuations/entry?id=<?= $item['id'] ?>" class="btn btn-mini btn-info">Info</a>
	</td>
  </tr>
  <? endforeach; ?>
</table>
<? endif; ?>

<? echo $this->paginationControl($this->paginator,
                                    'Sliding',
                                    'valuations/pagination_control.phtml'); ?>
